package cn.bgs.mapper;

import cn.bgs.pojo.VisitorsRecord;
import cn.bgs.vo.VisitorsrecordVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 访客记录表 Mapper 接口
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Mapper
public interface VisitorsRecordMapper extends BaseMapper<VisitorsRecord> {

    /**
     * 添加访客信息
     * @param visitorsRecord
     * @return
     */
    int insertvisitorsrecord(VisitorsRecord visitorsRecord);


    /**
     * 访客信息
     * @param id
     * @return
     */
    List<VisitorsrecordVo> getVisitorsList(@Param("id") Integer id, @Param("stratTime") String stratTime, @Param("endTime") String endTime);

    List<VisitorsRecord> findAll(@Param("id") Integer id,@Param("zhuangtai") String zhuangtai,@Param("name") String name);

    List<VisitorsRecord> findById(Integer id);
}
